package com.ruoyi.system.domain;

import java.util.Objects;

/**
 * @author: ZCJ
 * @date: 2024/06/24/10:19
 * @desc:
 */
public class Route {

    /**
     * 路线id
     */
    private Integer routeId;

    /**
     * 路线所涵盖的景点id, 以 , 进行分隔
     */
    private String spotIds;

    /**
     * 路线介绍
     */
    private String description;

    public Integer getRouteId() {
        return routeId;
    }

    public void setRouteId(Integer routeId) {
        this.routeId = routeId;
    }

    public String getSpotIds() {
        return spotIds;
    }

    public void setSpotIds(String spotIds) {
        this.spotIds = spotIds;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Route route = (Route) o;
        return Objects.equals(routeId, route.routeId) && Objects.equals(spotIds, route.spotIds) && Objects.equals(description, route.description);
    }

    @Override
    public int hashCode() {
        return Objects.hash(routeId, spotIds, description);
    }
}
